package pattern.factory.简单工厂;

public class CoffeeStore {
    public Coffee oderCoffee(String tpye){
//        SimpleCoffeeFactory simpleCoffeeFactory = new SimpleCoffeeFactory();
//
//        Coffee coffee = simpleCoffeeFactory.createCoffee(tpye);
        Coffee coffee = SimpleCoffeeFactory.createCoffee(tpye);

        coffee.addMilk();
        coffee.addSugar();
        return coffee;
    }
}
